package git.LengNanJun.day318.demo2;

public class Rectangle extends Graphical {
    public Rectangle() {
        super.draw("矩形");  // 调用父类方法draw并传参
    }

    public void count(int a, int b) {
        int area = a * b;
        System.out.println("矩形的面积是：" + area);
    }
}
